package com.bus.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bus.entity.Permission;
import com.bus.mapper.PermissionMapper;

@Service("permissionService")
public class PermissionServiceImp implements PermissionService {

	@Autowired
	private PermissionMapper pm;

	@Override
	public List<Permission> findAllPermissonByMenu() {
		return pm.selectAllPermissonByMenu();
	}

	@Override
	public List<Permission> findAllPermisson() {
		// TODO Auto-generated method stub
		return pm.selectAllPermisson();
	}
	

}
